import { createRouter, createWebHistory } from 'vue-router'



const routes = [
  {
    path: "/Login",
    component:  ()=>import("@/views/login.vue"),
  },
  {
    path: "/",
    component: ()=>import("@/views/sys/Home.vue"),
    redirect: "user",
    children: [
      {
        path: '/user',
        name: 'user',
        component: ()=>import("@/views/sys/user.vue")
      }, 
      {
        path: '/role',
        name: 'test02',
        component:  ()=>import("@/views/sys/role.vue")
      },

    ]
  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
